package com.woniuxy.service;

import com.woniuxy.entity.AppointVehicle;
import com.woniuxy.mapper.AppointVehicleMapper;
import com.woniuxy.util.ResponseData;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName TrackingServiceImpl
 * @Description TODO
 * @Author GuoYuning
 * @Date 2025/3/27 19:38
 * @Version 1.0
 */
@Service
@AllArgsConstructor
public class TrackingServiceImpl implements TrackingService {

    private AppointVehicleMapper appointVehicleMapper;


    @Override
    public ResponseData<?> queryAllAppointVehicle() {
        List<AppointVehicle> appointVehicles = appointVehicleMapper.trackingAll();
        return ResponseData.ok(appointVehicles);
    }
}
